package me.drakeet.multitype;

import ohos.agp.components.BaseItemProvider;
import ohos.agp.components.Component;

/**
 * 列表ViewHolder
 */
public class ItemViewHolder {
    /**
     * 条目View
     */
    public final Component itemView;
    /**
     * 适配器
     */
    BaseItemProvider adapter;
    /**
     * 条目类型
     */
    int itemViewType;
    /**
     * 位置
     */
    int adapterPosition;

    public ItemViewHolder(Component itemView) {
        this.itemView = itemView;
    }

    public int getItemViewType() {
        return itemViewType;
    }

    public BaseItemProvider getAdapter() {
        return adapter;
    }

    public int getAdapterPosition() {
        return adapterPosition;
    }
}